package cn.cheniy.swiftmark.api.leaf.feign;


import cn.cheniy.swiftmark.common.feign.FeignInsideAuthConfig;
import cn.cheniy.swiftmark.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author cheniy
 * @description
 *
 */
@FeignClient (value = "swiftmark-leaf",contextId ="segment")
public interface SegmentFeignClient {

    /**
     * 获取id
     * @param key
     * @return
     */
    @GetMapping (value = FeignInsideAuthConfig.FEIGN_INSIDE_URL_PREFIX + "/insider/segment")
    ServerResponseEntity<Long> getSegmentId(@RequestParam ("key") String key);


}
